home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Developer Connection Student Program
/
ADC Tools Sampler CD Disk 3 1999.iso
/
Metrowerks CodeWarrior
/
(Project Stationery)
/
Java
/
Java2
/
Java App-Applet
/
AppApplet.java
next >
Wrap
Text File
|
1998-03-12
|
382b
|
21 lines
/*
Trivial applet that displays a string,
as passed via getParamter.
*/
import java.awt.*;
import java.applet.Applet;
public class AppApplet extends Applet
{
public void init() {
setSize(200, 200);
}
public void paint( Graphics g ) {
String txt = getParameter("MYTEXT");
g.drawString("Sample Applet ...",30,30);
g.drawString( txt, 30, 50 );
}
}